﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace LearnThemselvesEffectively.Classes
{
    public static class GlobalSupportModele
    {

        public class TranslateItem
        {
            public int ID;
            /// <summary>
            /// Translated from
            /// </summary>
            public string BaseWord;
            /// <summary>
            /// Translated to
            /// </summary>
            public string Translation;
            /// <summary>
            /// Stage dependency 
            /// </summary>
            public int Stage;
            /// <summary>
            /// Amount of total mistranslation of word
            /// </summary>
            public int Mistranslation;
            /// <summary>
            /// Amount of total correct translation of word
            /// </summary>
            public int CorrectTranslation;
            /// <summary>
            /// Indicate knowledge of word
            /// </summary>
            public int TranslationPoints;
        }

        public class StageItem
        {
            string Name;
            int Mistranslation;
            int CorrectTranslation;
            double Note;
        }

        public static void OpenNewFrameCloseOwner(Window oChild, Window oOwner)
        {
            //var ofrmProxyOptions = new frmProxyOptions();
            oChild.Left = oOwner.Left;
            oChild.Top = oOwner.Top;
            oChild.Show();
            oOwner.Close();
        }

        public enum eSessionState { Idle, Finished };
        public static eSessionState SessionState = eSessionState.Idle;

        public enum eTranslationWindowModule { Learn, Exam };
        public static eTranslationWindowModule TranslationWindowModule = eTranslationWindowModule.Learn;
    }
}
